home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 July / CHIP 2006-07.2.iso / program / web_gelistirme / easyphp1-7_setup.exe / {app} / phpmyadmin / server_links.inc.php < prev    next >
Encoding:
PHP Script  |  2003-09-07  |  1.4 KB  |  70 lines

  1. <?php
  2. /* $Id: server_links.inc.php,v 1.10 2003/07/23 19:08:11 rabus Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. // Check parameters
  6.  
  7. if (!defined('PMA_COMMON_LIB_INCLUDED')) {
  8.     include('./libraries/common.lib.php');
  9. }
  10. PMA_checkParameters(array('is_superuser', 'url_query'));
  11.  
  12. /**
  13.  * Counts amount of navigation tabs
  14.  */
  15. $server_links_count_tabs = 0;
  16.  
  17.  
  18. /**
  19.  * Put something in $sub_part
  20.  */
  21. if (!isset($sub_part)) {
  22.     $sub_part = '';
  23. }
  24.  
  25.  
  26. /**
  27.  * Prepares links
  28.  */
  29. if ($is_superuser) {
  30.     $cfg['ShowMysqlInfo'] = TRUE;
  31.     $cfg['ShowMysqlVars'] = TRUE;
  32. }
  33.  
  34.  
  35. /**
  36.  * Displays a message
  37.  */
  38. if (!empty($message)) {
  39.     PMA_showMessage($message);
  40. }
  41.  
  42.  
  43. /**
  44.  * Displays tab links
  45.  */
  46. ?>
  47. <table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
  48.     <tr>
  49.         <td width="8"> </td>
  50. <?php
  51. echo PMA_printTab($strDatabases, 'server_databases.php', $url_query);
  52. if ($cfg['ShowMysqlInfo']) {
  53.     echo PMA_printTab($strStatus, 'server_status.php', $url_query);
  54. }
  55. if ($cfg['ShowMysqlVars']) {
  56.     echo PMA_printTab($strServerTabVariables, 'server_variables.php', $url_query);
  57. }
  58. if (PMA_MYSQL_INT_VERSION >= 40100) {
  59.     echo PMA_printTab($strCharsets, 'server_collations.php', $url_query);
  60. }
  61. if ($is_superuser) {
  62.     echo PMA_printTab($strPrivileges, 'server_privileges.php', $url_query);
  63. }
  64. echo PMA_printTab($strServerTabProcesslist, 'server_processlist.php', $url_query);
  65. echo PMA_printTab($strExport, 'server_export.php', $url_query);
  66. ?>
  67.     </tr>
  68. </table>
  69. <br />
  70.